export class News {
    /**
     * 私有变量声明
     * @private
     */
    private title: string;
    private content: string;

    /**
     * 构造函数
     * @param title
     * @param content
     */
    constructor(title:string, content:string) {
        this.title = title;
        this.content = content;
    }

    getTitle(){
        return this.title;
    }

    setTitle(title: string): void{
        this.title = title;
    }

    getContent() {
        return this.content;
    }

    setContent(content: string): void {
        this.content = content;
    }

}